import request from '@/axios'

export const getPlStudyPlanPageListApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlan/getPlStudyPlanPageList', data })
}
export const delBatchPlStudyPlanApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlan/delBatchPlStudyPlan', data })
}
export const delBatchPlStudyPlanVideoType = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlanVideoType/delBatchPlStudyPlanVideoType', data })
}
export const manualPlanTask = (params): Promise<IResponse> => {
  return request.get({ url: '/plStudyPlanVideoType/manualPlanTask', params })
}
export const delBatchPlStudyPlanVideo = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlanVideo/delBatchPlStudyPlanVideo', data })
}

export const addPlStudyPlanApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlan/addPlStudyPlan', data })
}
export const updatePlStudyPlanApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlan/updatePlStudyPlan', data })
}
export const getPlStudyPlanByIdApi = (data): Promise<IResponse> => {
  return request.get({ url: '/plStudyPlan/getPlStudyPlanById', data })
}

export const getPlStudyPlanVideoTypePageListApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlanVideoType/getPlStudyPlanVideoTypePageList', data })
}
export const updatePlStudyPlanVideoTypeApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlanVideoType/updatePlStudyPlanVideoType', data })
}
export const updatePlStudyPlanVideoApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlanVideo/updatePlStudyPlanVideo', data })
}
export const getVideoAddPageListApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlanVideo/getVideoAddPageList', data })
}
export const getPlStudyPlanVideoPageListApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlanVideo/getPlStudyPlanVideoPageList', data })
}
export const addBatchPlStudyPlanVideoApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudyPlanVideo/addBatchPlStudyPlanVideo', data })
}
export const getPlStudySchedulePageListApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudySchedule/getPlStudySchedulePageList', data })
}
export const delBatchPlStudyScheduleApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudySchedule/delBatchPlStudySchedule', data })
}
export const addPlStudyScheduleApi = (data): Promise<IResponse> => {
  return request.post({ url: '/plStudySchedule/addPlStudySchedule', data })
}
